package com.whli.autumn.mall.web.controller.convert.wms;

import com.whli.autumn.mall.wms.domain.dto.warehouseinfo.WarehouseInfoAddDTO;
import com.whli.autumn.mall.wms.domain.dto.warehouseinfo.WarehouseInfoUpdateDTO;
import com.whli.autumn.mall.wms.domain.entity.WarehouseInfo;
import com.whli.autumn.mall.wms.domain.vo.warehouseinfo.WarehouseInfoVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * <p>仓库信息转换工具</p>
 *
 * @author whli
 * @version 1.0.0
 * @since 2023-04-09 08:37
 */
@Mapper
public interface WarehouseInfoConvert {

    WarehouseInfoConvert INSTANCE = Mappers.getMapper(WarehouseInfoConvert.class);

    WarehouseInfo addToDomain(WarehouseInfoAddDTO dto);

    WarehouseInfo updateToDomain(WarehouseInfoUpdateDTO dto);

    WarehouseInfoVO domainToVO(WarehouseInfo entity);

}
